package com.eightbears.beboy.entity;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.eightbears.beboy.R;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Bao on 2017/8/1.
 */

public class LeftMenuEntity  implements MultiItemEntity {


    public static final int CONTENT = 1;
    public static final int HEAD = 2;

    private String name;
    private int leftImg;
    private String count;
    private boolean rightMenu;
    private int itemType;

    public void setItemType(int itemType) {
        this.itemType = itemType;
    }

    public boolean isRightMenu() {
        return rightMenu;
    }

    public void setRightMenu(boolean rightMenu) {
        this.rightMenu = rightMenu;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getLeftImg() {
        return leftImg;
    }

    public void setLeftImg(int leftImg) {
        this.leftImg = leftImg;
    }

    public String getCount() {
        return count;
    }

    public void setCount(String count) {
        this.count = count;
    }

    public static List<LeftMenuEntity> initData() {

        List<LeftMenuEntity> list = new ArrayList<>();
        LeftMenuEntity publishEntity = new LeftMenuEntity();
        publishEntity.setName("我的动态");
        publishEntity.setLeftImg(R.mipmap.icon_my_publish);
        publishEntity.setRightMenu(true);
        publishEntity.setItemType(CONTENT);
        list.add(publishEntity);

        LeftMenuEntity red = new LeftMenuEntity();
        red.setName("我的红包");
        red.setLeftImg(R.mipmap.icon_my_hongbao);
        red.setRightMenu(true);
        publishEntity.setItemType(CONTENT);
        list.add(red);


        LeftMenuEntity vip = new LeftMenuEntity();
        vip.setName("我的特权");
        vip.setLeftImg(R.mipmap.icon_my_vip);
        vip.setRightMenu(true);
        publishEntity.setItemType(CONTENT);
        list.add(vip);

        LeftMenuEntity order = new LeftMenuEntity();
        order.setName("我的订单");
        order.setLeftImg(R.mipmap.icon_my_order);
        order.setRightMenu(true);
        publishEntity.setItemType(CONTENT);
        list.add(order);

        LeftMenuEntity post = new LeftMenuEntity();
        post.setName("解锁内容");
        post.setRightMenu(true);
        post.setLeftImg(R.mipmap.icon_my_zhuti);
        publishEntity.setItemType(CONTENT);
        list.add(post);

        LeftMenuEntity follow = new LeftMenuEntity();
        follow.setName("关注商家");
        follow.setRightMenu(true);
        follow.setLeftImg(R.mipmap.icon_my_follow);
        publishEntity.setItemType(CONTENT);
        list.add(follow);

        LeftMenuEntity lin1 = new LeftMenuEntity();
        publishEntity.setItemType(HEAD);
        list.add(lin1);

        return list;
    }

    @Override
    public String toString() {
        return "LeftMenuEntity{" +
                "name='" + name + '\'' +
                ", leftImg='" + leftImg + '\'' +
                ", count='" + count + '\'' +
                '}';
    }

    @Override
    public int getItemType() {
        return itemType;
    }
}
